import request from '../utils/request';
import paramUri from '../utils/params';

const baseUrl = 'http://127.0.0.1:8090/api';

// get user profile
export async function fetchUserProfile(params) {
  const decodeParam = paramUri(params);
  return request(`${baseUrl}/organ/profile?${decodeParam}`, {
    method: 'GET',
  });
}
